home *** CD-ROM | disk | FTP | other *** search
- Path: news.production.compuserve.com!news
- From: Bill Symmes <71046.623@CompuServe.COM>
- Newsgroups: comp.lang.c
- Subject: Re: ATTENTION C EXPERTS!! Extern Declarations - NEED HELP!
- Date: 19 Jan 1996 14:22:33 GMT
- Organization: CompuServe, Inc. (1-800-689-0736)
- Message-ID: <4do9f9$ov0$1@mhafn.production.compuserve.com>
- References: <4dkp42$k1q@news.cencom.net>
-
- CDECL specifies that the function arguments are pushed on the
- stack in reverse order. This allows the use of functions with a
- variable number of arguments.
-
- PASCAL pushes the arguments in regular order. It generates
- somewhat smaller and faster code but can only be used with a
- fixed number of arguments.
-
- printf(), for example, is a CDECL function because the number of
- arguments can vary from one call to the next.
-
- The near and far do just as described. They are required in the
- Intel segmented architecture but are not generally used on
- systems with a flat memory scheme (i.e., no segments).
-
- --
- Bill Symmes P*ROM Software Inc
- 71046.623@compuserve.com +1 802 862-7500
- +1 802 862-8357 (Fax)
- Burlington VT 05406-4027
-